package com.care.mall.common.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.care.common.core.annotation.Excel;
import com.care.common.core.web.domain.TreeEntity;

/**
 * 商品类目对象 mall_category
 *
 * @author 李光耀负责
 * @date 2024-03-27
 */
public class MallCategory extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 类目编号 */
    private Long id;

    /** 类目名称 */
    @Excel(name = "类目名称")
    private String categoryName;

    /** 类目状态(1停止,2开启)只有一级类目可以使用 */
    @Excel(name = "类目状态(1停止,2开启)只有一级类目可以使用")
    private Integer categoryStatus;

    /** 类目等级(1一级,2二级,3三级) */
    @Excel(name = "类目等级(1一级,2二级,3三级)")
    private Integer categoryRank;

    /** 类目上级编号 */
    @Excel(name = "类目上级编号")
    private Long categoryPid;

    /** 伪删除(1未删除,2已删除) */
    @Excel(name = "伪删除(1未删除,2已删除)")
    private Integer isDelete;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setCategoryName(String categoryName)
    {
        this.categoryName = categoryName;
    }

    public String getCategoryName()
    {
        return categoryName;
    }
    public void setCategoryStatus(Integer categoryStatus)
    {
        this.categoryStatus = categoryStatus;
    }

    public Integer getCategoryStatus()
    {
        return categoryStatus;
    }
    public void setCategoryRank(Integer categoryRank)
    {
        this.categoryRank = categoryRank;
    }

    public Integer getCategoryRank()
    {
        return categoryRank;
    }
    public void setCategoryPid(Long categoryPid)
    {
        this.categoryPid = categoryPid;
    }

    public Long getCategoryPid()
    {
        return categoryPid;
    }
    public void setIsDelete(Integer isDelete)
    {
        this.isDelete = isDelete;
    }

    public Integer getIsDelete()
    {
        return isDelete;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("categoryName", getCategoryName())
            .append("categoryStatus", getCategoryStatus())
            .append("categoryRank", getCategoryRank())
            .append("categoryPid", getCategoryPid())
            .append("isDelete", getIsDelete())
            .toString();
    }
}
